package service.impl;

import dao.Impl.NewsImpl;
import dao.NewsDao;
import model.NewsModel;
import service.INewsService;

import java.util.List;

public class NewsServcieImpl implements INewsService {
    @Override
    public List<NewsModel> getTitleList() {
        NewsDao dao =new NewsImpl();
        return dao.getTitleList();
    }

    @Override
    public List<NewsModel> getContentList() {
        NewsDao dao =new NewsImpl();
        return dao.getContentList();
    }
}
